package com.manage.system.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.common.core.result.JsonResult;
import com.manage.system.api.entity.SysDictData;
import com.manage.system.api.request.dict.DictDataAddOrEditParam;
import com.manage.system.api.request.dict.DictTypeAddOrEditParam;

import java.util.List;

/**
 * <p>
 * 字典数据表 服务类
 * </p>
 *
 * @author zhangqing
 * @since 2021-11-23
 */
public interface ISysDictDataService extends IService<SysDictData> {

    JsonResult findDictDataList(String dictType);

    JsonResult batchDelDictData(List<Long> dictDataIds);

    /**
     * 添加字典数据
     * @param dictDataAddOrEditParam 参数
     * @return 统一响应
     */
    JsonResult addDictData(DictDataAddOrEditParam dictDataAddOrEditParam);

    /**
     * 修改字典数据
     * @param dictDataAddOrEditParam 参数
     * @return 统一响应
     */
    JsonResult editDictData(DictDataAddOrEditParam dictDataAddOrEditParam);
}
